<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box img{
            height: 80px;
            width: 80px;
            border-radius: 40px;
            transition: all 3s;
        }

        img:hover{
            transform: rotate(360deg);

        }
    </style>
</head>
<body>
    <div class="box"><img src="../media/pig.jpg" alt=""></div>
</body>
</html>